Fixing the Windows 11 Memory Leak Issue